import request from '@/utils/request'

// 兑换码列表
export function redeemcodeList(params) {
  return request({
    url: '/mapi/redeemcode/list',
    method: 'get',
    params
  })
}

// 兑换码详情
export function redeemcodeInfo(params) {
  return request({
    url: '/mapi/redeemcode/info',
    method: 'get',
    params
  })
}

// 兑换码编辑
export function redeemcodeEdit(params) {
  return request({
    url: '/mapi/redeemcode/edit',
    method: 'post',
    params
  })
}

// 兑换记录
export function redeem_history(params) {
  return request({
    url: '/mapi/redeemcode/redeem_history',
    method: 'get',
    params
  })
}

// 删除
export function redeemcodeDelete(params) {
  return request({
    url: '/mapi/redeemcode/delete',
    method: 'post',
    params
  })
}
